package com.tangruojie.mapstruct;

import com.tangruojie.domain.dto.UserDto;
import com.tangruojie.domain.po.User;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface UserMap {

    User toEntity(UserDto userDto);

    UserDto toDto(User user);

}
